package com.cy.pj.modules.entity;

import com.cy.pj.common.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 fz_order
 *
 * @author kiven
 * @date 2023-03-07
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private String id;

    /** 店铺id */
    //@Excel(name = "店铺id")
    private Long shopId;

    /** 会员id-线下选填 */
    //@Excel(name = "会员id-线下选填")
    private String memberId;

    /** 用户名称-线下选填 */
    private String username;

    /** 数量合计 */
    //@Excel(name = "数量合计")
    private Long totalNum;

    /** 金额合计 */
    //@Excel(name = "金额合计")
    private Long totalMoney;

    /** 优惠金额 */
    //@Excel(name = "优惠金额")
    private Long preMoney;

    /** 实付金额 */
    //@Excel(name = "实付金额")
    private Long payMoney;

    /** 订单状态  */
    //@Excel(name = "订单状态 ")
    private String orderStatus;

    /** 支付类型，0,现金支付,1、在线支付2.货到付款 */
    //@Excel(name = "支付类型，0,现金支付,1、在线支付2.货到付款")
    private String payType;

    /** 付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 交易完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "交易完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 交易关闭时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "交易关闭时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date closeTime;

    /** 支付状态 0:未支付 1:已支付 */
    //@Excel(name = "支付状态 0:未支付 1:已支付")
    private String payStatus;

    /** 订单来源：1:web，2：app，3：微信公众号，4：微信小程序  5 线下门店 */
    //@Excel(name = "订单来源：1:web，2：app，3：微信公众号，4：微信小程序  5 线下门店")
    private String sourceType;

    /** 交易流水号 */
    //@Excel(name = "交易流水号")
    private String transactionId;

    /** 邮费-线下选填 */
    //@Excel(name = "邮费-线下选填")
    private Long postFee;

    /** 发货时间-线下选填 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "发货时间-线下选填", width = 30, dateFormat = "yyyy-MM-dd")
    private Date consignTime;

    /** 物流名称-线下选填 */
    //@Excel(name = "物流名称-线下选填")
    private String shippingName;

    /** 物流单号-线下选填 */
    //@Excel(name = "物流单号-线下选填")
    private String shippingCode;

    /** 买家留言-线下选填 */
    //@Excel(name = "买家留言-线下选填")
    private String buyerMessage;

    /** 是否评价-线下选填 */
    //@Excel(name = "是否评价-线下选填")
    private String buyerRate;

    /** 收货人-线下选填 */
    //@Excel(name = "收货人-线下选填")
    private String receiverContact;

    /** 收货人手机-线下选填 */
    //@Excel(name = "收货人手机-线下选填")
    private String receiverMobile;

    /** 收货人地址-线下选填 */
    //@Excel(name = "收货人地址-线下选填")
    private String receiverAddress;

    /** 发货状态 0:未发货 1:已发货 2:已送达-线下选填 */
    //@Excel(name = "发货状态 0:未发货 1:已发货 2:已送达-线下选填")
    private String consignStatus;

    /** 是否删除 */
    //@Excel(name = "是否删除")
    private String isDelete;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setShopId(Long shopId)
    {
        this.shopId = shopId;
    }

    public Long getShopId()
    {
        return shopId;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setTotalNum(Long totalNum)
    {
        this.totalNum = totalNum;
    }

    public Long getTotalNum()
    {
        return totalNum;
    }
    public void setTotalMoney(Long totalMoney)
    {
        this.totalMoney = totalMoney;
    }

    public Long getTotalMoney()
    {
        return totalMoney;
    }
    public void setPreMoney(Long preMoney)
    {
        this.preMoney = preMoney;
    }

    public Long getPreMoney()
    {
        return preMoney;
    }
    public void setPayMoney(Long payMoney)
    {
        this.payMoney = payMoney;
    }

    public Long getPayMoney()
    {
        return payMoney;
    }
    public void setOrderStatus(String orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus()
    {
        return orderStatus;
    }
    public void setPayType(String payType)
    {
        this.payType = payType;
    }

    public String getPayType()
    {
        return payType;
    }
    public void setPayTime(Date payTime)
    {
        this.payTime = payTime;
    }

    public Date getPayTime()
    {
        return payTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setCloseTime(Date closeTime)
    {
        this.closeTime = closeTime;
    }

    public Date getCloseTime()
    {
        return closeTime;
    }
    public void setPayStatus(String payStatus)
    {
        this.payStatus = payStatus;
    }

    public String getPayStatus()
    {
        return payStatus;
    }
    public void setSourceType(String sourceType)
    {
        this.sourceType = sourceType;
    }

    public String getSourceType()
    {
        return sourceType;
    }
    public void setTransactionId(String transactionId)
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId()
    {
        return transactionId;
    }
    public void setPostFee(Long postFee)
    {
        this.postFee = postFee;
    }

    public Long getPostFee()
    {
        return postFee;
    }
    public void setConsignTime(Date consignTime)
    {
        this.consignTime = consignTime;
    }

    public Date getConsignTime()
    {
        return consignTime;
    }
    public void setShippingName(String shippingName)
    {
        this.shippingName = shippingName;
    }

    public String getShippingName()
    {
        return shippingName;
    }
    public void setShippingCode(String shippingCode)
    {
        this.shippingCode = shippingCode;
    }

    public String getShippingCode()
    {
        return shippingCode;
    }
    public void setBuyerMessage(String buyerMessage)
    {
        this.buyerMessage = buyerMessage;
    }

    public String getBuyerMessage()
    {
        return buyerMessage;
    }
    public void setBuyerRate(String buyerRate)
    {
        this.buyerRate = buyerRate;
    }

    public String getBuyerRate()
    {
        return buyerRate;
    }
    public void setReceiverContact(String receiverContact)
    {
        this.receiverContact = receiverContact;
    }

    public String getReceiverContact()
    {
        return receiverContact;
    }
    public void setReceiverMobile(String receiverMobile)
    {
        this.receiverMobile = receiverMobile;
    }

    public String getReceiverMobile()
    {
        return receiverMobile;
    }
    public void setReceiverAddress(String receiverAddress)
    {
        this.receiverAddress = receiverAddress;
    }

    public String getReceiverAddress()
    {
        return receiverAddress;
    }
    public void setConsignStatus(String consignStatus)
    {
        this.consignStatus = consignStatus;
    }

    public String getConsignStatus()
    {
        return consignStatus;
    }
    public void setIsDelete(String isDelete)
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopId", getShopId())
            .append("memberId", getMemberId())
            .append("username", getUsername())
            .append("totalNum", getTotalNum())
            .append("totalMoney", getTotalMoney())
            .append("preMoney", getPreMoney())
            .append("payMoney", getPayMoney())
            .append("orderStatus", getOrderStatus())
            .append("payType", getPayType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("payTime", getPayTime())
            .append("endTime", getEndTime())
            .append("closeTime", getCloseTime())
            .append("payStatus", getPayStatus())
            .append("sourceType", getSourceType())
            .append("transactionId", getTransactionId())
            .append("postFee", getPostFee())
            .append("consignTime", getConsignTime())
            .append("shippingName", getShippingName())
            .append("shippingCode", getShippingCode())
            .append("buyerMessage", getBuyerMessage())
            .append("buyerRate", getBuyerRate())
            .append("receiverContact", getReceiverContact())
            .append("receiverMobile", getReceiverMobile())
            .append("receiverAddress", getReceiverAddress())
            .append("consignStatus", getConsignStatus())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
